﻿using System;

namespace LabSolutions
{
    class Program
    {
        static void Main(string[] args)
        {		
            string input = Console.ReadLine();
            string[] inputNumbers = input.Split(' ');
            double a = double.Parse(inputNumbers[0]);
            double b = double.Parse(inputNumbers[1]);

            double c = a + b;
            double d = a * b;
  
            Console.WriteLine(c.ToString("0.00000"));
            Console.Write(d.ToString("0.00000"));                        
        }
    }
}
